package qnb.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qnb.dao.CourseheaderMapper;
import qnb.entity.Course_header;
import qnb.entity.Course_part;
import qnb.service.CourseheaderService;

import java.util.List;
@Service
public class CourseheaderServiceImpl implements CourseheaderService  {

    @Autowired
    private CourseheaderMapper courseheaderMapper;

    @Override
    public int insertHeader(Course_header header) {
        return courseheaderMapper.insertHeader(header);
    }

    @Override
    public List<Course_header> selectAllCourse(Course_header header) {
        return courseheaderMapper.selectAllCourse(header);
    }
}
